package net.hn.hnms.biz.project.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘昊
 * 施工计划
 * @date 2024-03-13 16:12
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper=false)
@Table(name = "construction_plan", schema = "xmgl", catalog = "huaneng-manage")
public class ConstructionPlan extends BaseModel implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String constructionId;

    @ApiModelProperty(value = "项目id")
    private String projectId;

//    @ApiModelProperty(value = "项目名称")
//    @TableField(updateStrategy= FieldStrategy.IGNORED)
//    private String projectName;

    @ApiModelProperty(value = "项目编号")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String projectCode;

    @ApiModelProperty(value = "项目负责人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String projectLeader;

    @ApiModelProperty(value = "立项日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date projectDate;

    @ApiModelProperty(value = "计划名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String planName;

//    @ApiModelProperty(value = "施工单位")
//    @TableField(updateStrategy= FieldStrategy.IGNORED)
//    private String constructionUnit;

    @ApiModelProperty(value = "计划制定日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date planningDate;

    @ApiModelProperty(value = "计划开始日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date planningStartDate;

    @ApiModelProperty(value = "计划结束日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date planningEndDate;

    @ApiModelProperty(value = "计划总用时(天)")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String planningTotalTime;

    @ApiModelProperty(value = "公司编码")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String companyCode;

}
